class FileDialog
{
public:
	FileDialog(HWND hwnd);
	BOOL OpenDlg(HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName);
	BOOL SaveDlg(HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName);
	
	static void GetFileExt(PTSTR pstrTitleName, PTSTR pstrFileExt);
private:
	static OPENFILENAME ofn;
};

class ColorDialog
{
public:
	ColorDialog(HWND hwnd);
	bool Show(COLORREF& color);
private:
	static CHOOSECOLOR cc;
	static COLORREF crCustColors[16];
};

class FontDialog
{
private:
	CHOOSEFONT cf ;
public:
	FontDialog(HWND hwnd);
	bool ChooseFontDlg(LOGFONT* plf);
};